package com.threeox.commonlibrary.ui.fragment;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;

import com.threeox.commonlibrary.entity.engine.model.multipage.MultiPageMessage;
import com.threeox.commonlibrary.ui.fragment.base.BaseModelFragment;
import com.threeox.commonlibrary.ui.view.engineview.multipagemodel.MultiPageModelView;

/**
 *
 * @ClassName: MultiPageModelFragment
 *
 * @Description: TODO()
 *
 * @author 赵屈犇
 *
 * @date 创建时间: 2018/4/8 11:47
 *
 * @version 1.0
 *
 */
public class MultiPageModelFragment extends BaseModelFragment {

    private MultiPageMessage mMultiPageMessage;
    private MultiPageModelView mMultiPageModelView;

    @Override
    protected View setView(ViewGroup container) {
        mMultiPageModelView = new MultiPageModelView(mContext);
        mMultiPageModelView.setLayoutParams(new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT));
        return mMultiPageModelView;
    }

    @Override
    protected void initViews(Bundle savedInstanceState) {
        Intent intent = new Intent();
        if (mBundle != null) {
            intent.putExtras(mBundle);
        }
        mMultiPageModelView.initData(intent);
    }

    @Override
    protected void initDatas() {
        mMultiPageMessage = mMultiPageModelView.getMultiPageMessage();
        initBaseModelMessage(mMultiPageModelView);
    }

    @Override
    protected void setListener() {

    }
}
